package hao.bk.royalmap;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

public class SlidingMenuLayout extends RelativeLayout {

	private RoyalMapActivity main;
	protected SlidingMenuGeneralLayout generalLayout;
	
	public SlidingMenuLayout(Context context, AttributeSet attrs) {
		
		super(context, attrs);
		main = (RoyalMapActivity)context;
	}
	/**
	 * Hiện thị Sliding Menu mặc định
	 */
	public void showSlideMenu(){
		generalLayout = new SlidingMenuGeneralLayout(main);
		addContent(generalLayout);
	}
// Thêm trang trong search vị trí
	public void addContent(View view) {
		this.removeAllViews();
		LayoutParams param = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		this.addView(view, param);
	}
	
}
